﻿using System.ComponentModel.DataAnnotations;
using YWM.Dto;

namespace PLC.Interface.Stations
{
    public class StationDto : EntityDto
    {
        [Required(ErrorMessage = "站点名称不能为空")]
        [StringLength(50, ErrorMessage = "站点名称不能超过50个字符")]
        public string DisplayName { get; set; }

        public byte Identifier { get; set; }

        public bool IsActive { get; set; }

        [StringLength(255, ErrorMessage = "描述不能超过255个字符")]
        public string Description { get; set; }
    }
}
